package com.sky.wsp.sql.scanner.patterns.sql;

import com.sky.wsp.sql.scanner.patterns.BasePattern;

import java.util.Map;
import java.util.regex.Pattern;

public class AnnotationPattern extends BasePattern {
    public AnnotationPattern() {
        Map<String, Pattern> patterns = getPatterns();
        patterns.put("@Select", Pattern.compile("@Select"));
        patterns.put("@Insert", Pattern.compile("@Insert"));
        patterns.put("@Delete", Pattern.compile("@Delete\\("));
        patterns.put("@Update", Pattern.compile("@Update"));
        patterns.put("@Query", Pattern.compile("@Query"));
    }
}
